package org.aom.service.menu.impl;

import java.util.List;
import java.util.Set;

import org.aom.dao.menu.ModuleDao;
import org.aom.entity.menu.Module;
import org.aom.service.base.EntityManager;
import org.aom.service.menu.IModuleManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Service(value="moduleManager")
@Transactional
public class ModuleManager extends EntityManager<Module, Long> implements IModuleManager{
	
	@Autowired
	private ModuleDao moduleDao;

	@Override
	protected ModuleDao getEntityDao() {
		return moduleDao;
	}
	
	@Transactional(readOnly = true)
	public List<Module> findEntitysByIds(Set<Long> mIds) {
		return getEntityDao().findEntitysByIds(mIds);
	}

}
